var deposit=({
	 init : function(){
		 $$.showPreloader("加载中");
			$.ajax({
				url : "../../depositslip/queryDepositSlip.do",
				data : {
					userId : userId
				},
				type : "GET",
				dataType : 'json',
				cache : false,
				success : function(ret){
					console.log(ret);
					$$.hidePreloader();
					var html = '';
					if(ret.list && ret.list.length>0){
						$.each(ret.list,function(i,n){
							html += '<li class="item-content item-link" onclick="deposit.toLink(\'./yajindan.html?slipId='+n.slipId+'&userId='+userId+'\')">'+
								        '<div class="item-media"><i class="icon icon-f7"></i></div>'+
								        '<div class="item-inner">'+
								          '<div class="item-title">'+(n.houseAddr==null?"":n.houseAddr)+' 押金单</div>'+
								        '</div>'+
								     '</li>';
						});
					}
					$("#info_list").append( html||'<li class="item-content item-link">暂无数据</li>' )
				},
				error: function(){
					$$.hidePreloader();
					$$.toast("加载出错");
				}
			});
	},
	queryDepotSliById : function (){
		$$.showPreloader("加载中");
		$.ajax({
			url : "../../depositslip/queryDepotSliById.do",
			data : {
				slipId : slipId
			},
			type : "post",
			dataType : 'json',
			cache : false,
			success : function(ret){
				$$.hidePreloader();
				if(ret.success && ret.list!=null){
					$(".houseAddr_").text(ret.list.houseAddr);
					$(".userName_").text(ret.list.userName);
					$(".payDate_").text(common.timestampToTime(ret.list.payDate));
					$(".money_").text(ret.list.money);
					$(".bankName_").text(ret.list.bankName);
					$(".payAccount_").text(ret.list.payAccount);
				}
				
			},
			error: function(){
				$$.hidePreloader();
				$$.toast("加载出错");
			}
		});
	},
	toLink :function (txt,tagrt) {
		document.location.href = "./" + txt;
	}
})